# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer:
pkgname=zsh-fzf-tab
_name=fzf-tab
pkgver=0_git20220331
_commit=7e0eee64df6c7c81a57792674646b5feaf89f263
pkgrel=1
pkgdesc="replace zsh's default completion selection menu with fzf"
options="!check" # No testsuite
url="https://github.com/Aloxaf/fzf-tab"
arch="noarch"
license="MIT"
depends="zsh"
source="$pkgname-$pkgver.tar.gz::https://github.com/Aloxaf/fzf-tab/archive/$_commit.tar.gz"
builddir="$srcdir/$_name-$_commit"

package() {
	install -D $_name.zsh $_name.plugin.zsh -t \
		 "$pkgdir/usr/share/zsh/plugins/$_name"
	cp -r lib "$pkgdir/usr/share/zsh/plugins/$_name"
}

sha512sums="
a8867f79915b3e43b2ba7ddb9c891be7e08539035801c13bf33fd74523cd0f089fb0dbb702fdf1a8176cf8814c39a41c4a58c7c433becbbffe8757a63c0d1adc  zsh-fzf-tab-0_git20220331.tar.gz
"
